rate—interest rate per period; payment—payment per period; presval—present value of amount to be paid; futval—optional future value (default 0); type—optional: 0 payment at end of period, 1 payment at beginning.
term creates a block the same size as the rate block containing the number of payments to be made.